﻿define(["service/service", "service/httpService"], function (service) {
    service.factory("orderService", function (httpService) {
        var methods = {
            gets: function (params) {
                return httpService.get("/admin/order/gets", params);
            },
            get: function (params) {
                return httpService.get("/admin/order/get", params);
            },
            shipping: function (params) {
                return httpService.post("/order/Shipping", params);
            },
            orderRefund: function (params) {
                return httpService.post("/order/OrderRefund", params);
            },
            confirmOrder: function (id) {
                return httpService.post("/order/ConfirmOrder", { id: id });
            }
        }
        return methods;
    });
});